﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TemplateUpgate.Model;

namespace TemplateUpgate
{
    public partial class Register : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnRegister_Click(object sender, EventArgs e)
        {
            Users user = new Users();
            DateTime birthDay = DateTime.ParseExact(txtBirthday.Text, "MM/dd/yyyy", null);
            user.insertUser(txtUsername.Text, txtPassword.Text, birthDay, ddlGender.SelectedValue, null, null, txtPhone.Text, txtEmail.Text, null);
        }
    }
}